package cn.abellflower.flowerhomehandler.home.comm;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Description
 * @Author gbzdyf@126.com
 * @Date 2020/11/4 9:46 下午
 */
@Slf4j
@Component
public class CustomerServiceComponent implements InitializingBean, DisposableBean {

    @PostConstruct
    public void init() {
        log.info("执行 PostConstruct");
    }

    @Override
    public void destroy() throws Exception {
        log.info("执行 destroy");
    }

    public void initMethod() {
        log.info("执行 initMethod");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("执行 afterPropertiesSet");
    }
}
